<a class="icon_new" title="Créer une filière" href="<?php echo shRequest::link('administration', 'filiere', 'create')?>">Créer une filière</a>
<?php foreach($filieres as $filiere): ?>
    <table class="liste">
	<thead>
	    <tr>
		<th><?php echo $filiere->intitule ?></th>
		<th class="icon"><a class="edit" title="Modifier cette filière" href="<?php echo shRequest::link('administration','filiere','edit',$filiere->id)?>"></a></th>
		<th class="icon"><a class="delete" title="Supprimer cette filière" href="<?php echo shRequest::link('administration', 'filiere', 'delete',$filiere->id)?>"></a></th>
	    </tr>
	</thead>
	<tbody>
	    <tr>
		<td colspan="3"><a class="icon_new" title="Ajouter une spécialité" href="<?php echo shRequest::link('administration', 'specialite', 'create',$filiere->id)?>">Ajouter une spécialité</a></td>
	    </tr>
	    <?php foreach($specialites[$filiere->id] as $specialite): ?>
		<tr>
		    <td><?php echo $specialite->intitule ?></td>
		    <td class="icon"><a class="edit" title="Modifier la spécialité" href="<?php echo shRequest::link('administration','specialite','edit',$specialite->id)?>"></a></td>
		    <td class="icon"><a class="delete" title="Supprime la spécialité" href="<?php echo shRequest::link('administration','specialite','delete',$specialite->id)?>"></a></td>
		</tr>
	    <?php endforeach ?>
	</tbody>
    </table>
<?php endforeach ?>